<?php e($javascript->link('ckeditor/ckeditor')); ?>
<div class="jobs form">
<?php $session->flash(); ?>
<?php e($form->create('Job')); ?>
    <fieldset>
         <legend><?php __('Add Job');?></legend>
        <!-- Job Add Form Widfat -->
        <div class="widfats">
            <?php e($form->input('title', array('class'=>'input text large'))); ?>
            <?php e($form->input('workplace', array('class'=>'input text large'))); ?>
            <?php e($form->input('requirement', array('type'=>'textarea', 'label'=>__('Job Requirement', true), 'class'=>'textarea'))); ?>
            <?php e($form->input('introduction', array('type'=>'textarea', 'label'=>__('Job Introduction', true), 'class'=>'textarea'))); ?>
        </div>
        <!-- Job add sidebar -->
        <div class="sidebar">
            <!-- Save Job button -->
            <div class="widget">
                <div class="toggle">&nbsp;</div>
                <h3 class="handle"><span><?php __('Add Job');?></span></h3>
                <div class="content">
                    <?php e($form->submit(__('Add Job', true), array('class'=>'submit attention'))); ?>
                </div>
            </div>
            <!-- Job Category Info -->
            <div class="widget">
                <div class="toggle">&nbsp;</div>
                <h3 class="handle"><span><?php __('Extra Information'); ?></span></h3>
                <div class="content">
                    <?php e($form->input('company_id', array('class'=>'select'))); ?><br class="clear"/>
                    <?php e($form->input('expire_date', array('class'=>'select'))); ?><br class="clear"/>
                </div>
            </div>
            <!-- Quick Actions -->
            <div class="widget">
                <div class="toggle">&nbsp;</div>
                <h3 class="handle"><span><?php __('Quick Actions');?></span></h3>
                <div class="content">
                    <div class="actions">
                        <ul>
                            <li><?php e($html->link(__('List Jobs', true), array('action' => 'index'))); ?></li><br class="clear"/>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </fieldset>
<?php e($form->end());?>
</div>
<script type='text/javascript'>
$(window).ready(function(){
    // Create an CKEditor
    $.sme.cbk.initCKEditor('JobRequirement', 'basic');
    $.sme.cbk.initCKEditor('JobIntroduction', 'basic');
});
</script>